package paint;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

/**
 * Classe ControlerCarreIcone<br>
 * @author Romain Bustos
 * @author Matthieu Perrin
 * @version 1.0
 */
public class ControlerCarreIcone implements MouseListener
{
    CarreIcone carreicone;

    public ControlerCarreIcone(CarreIcone ci)
    {
        this.carreicone = ci;
    }

    @Override
    public void mouseClicked(MouseEvent me) { }
    public void mouseDragged(MouseEvent me) { }
    public void mouseExited(MouseEvent me) {  }
    public void mouseEntered(MouseEvent me) { }
    public void mouseMoved(MouseEvent me) { }
    public void mousePressed(MouseEvent me)
    {
        carreicone.selection.setType(carreicone.type);
    }
    public void mouseReleased(MouseEvent me) { }
}
